Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't allow duplicate definitions of structs and enum struct variants. #7267

Closed
wants to merge 2 commits into from

Conversation

luqmana
Copy link
Member

@luqmana luqmana commented Jun 20, 2013

Fixes #5792

bors added a commit that referenced this pull request Jun 23, 2013
@bors bors closed this Jun 23, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 3, 2021
…shearth

Some SpanlessHash improvements

changelog: none

* Use `mem::discriminant().hash()` instead of `stable_hash` for simple enums and then use `FxHasher` instead of `StableHasher`. We don't use any StableHash features.
* Use `UnHashMap` for maps keyed by spanless hash values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enum struct variants can mask regular struct constructors
3 participants